package com.heaven.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

import java.time.Clock;

/**
 * 文件成功上传到minio后，触发该事件
 * 发送一个文件的{md5}消息
 */
@Getter
public class UpToMinioEvent extends ApplicationEvent {

    private final String md5;
    private final String objectName;

    public UpToMinioEvent(Object source, String md5, String objectName) {
        super(source);
        this.md5 = md5;
        this.objectName = objectName;
    }

}
